﻿using RuoVea.ExSugar.Attributes;

namespace RuoVea.OmiApi.UserRoleMenu.Entitys;


/// <summary>
/// 角色菜单表
/// </summary>
[SugarTable(nameof(SysRoleMenu), "角色菜单表")]
[Description("角色菜单表")]
[Tenant("0")]
public class SysRoleMenu : EntityBaseId
{
    /// <summary>
    /// 角色Id
    /// </summary>
    [ConfigSugarColumn(columnKey: nameof(RoleId), columnDescription:"角色Id")]
    public long RoleId { get; set; }

    /// <summary>
    /// 菜单Id
    /// </summary>
    [ConfigSugarColumn(columnKey: nameof(MenuId), columnDescription:"菜单Id")]
    public long MenuId { get; set; }

    /// <summary>
    /// 菜单
    /// </summary>
    [Newtonsoft.Json.JsonIgnore]
    [System.Text.Json.Serialization.JsonIgnore]
    [Navigate(NavigateType.OneToOne, nameof(MenuId))]
    public SysMenu SysMenu { get; set; }
}

